/* Reset default margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Style */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    position: relative;
    overflow-x: hidden;
}

/* Sticky Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #333;
    color: white;
    position: sticky; /* Makes the header sticky */
    top: 0; /* Keeps the header on top */
    z-index: 1000; /* Ensures header stays on top of other content */
    width: 100%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Optional: shadow for better visibility */
}

header .logo {
    font-size: 24px;
    font-weight: bold;
}

header nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
}

/* Hover effect for header links */
header nav a:hover {
    background-color: #f39c12; /* Change the background color */
    padding: 5px 10px;  /* Add some padding to make it look better */
    border-radius: 5px;  /* Optional: adds rounded corners */
}

/* Search Input */
header .search-bar {
    display: flex;
    align-items: center;
}

header .search-bar input[type="text"] {
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-size: 14px;
    width: 200px;
    transition: width 0.3s;
}

header .search-bar input[type="text"]:focus {
    width: 250px;
    outline: none;
    border-color: #f39c12;
}
  /* Main Section Layout */
  .main-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
    position: relative;
    margin-top: 80px; /* Adjust this based on header height */
}

.left-section {
    flex: 1 1 20%;
    margin-right: 20px;
}

.right-section {
    flex: 3 1 70%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    position: relative;
    z-index: 1;
}

/* Product Card Style */
.product {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
}

.product-img {
    width: 80%;
    max-width: 180px;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-img:hover {
    transform: scale(1.1);
}

.product-name {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

.product-description {
    font-size: 14px;
    color: #666;
}

/* Style the product category headers */
.category-header {
    cursor: pointer;
    font-size: 18px;
    margin-bottom: 5px;
    padding: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Initially hide the category items */
.category-items {
    list-style: none;
    margin: 0;
    padding-left: 20px;
    display: none; /* Hide items by default */
}

/* Style for individual list items */
.category-items li {
    margin-bottom: 5px;
}

/* Style for when category items are visible */
.category-items.show {
    display: block;
}

/* Hover effect for products */
.product:hover {
    transform: translateY(-10px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

/* Advertisement Video */
.advertisement {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.advertisement video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    pointer-events: none;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer .footer-section {
    width: 100%;
    margin-bottom: 20px;
}


footer .footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

footer .footer-links a:hover {
    text-decoration: underline;
}

.footer-bottom {
    display: flex; /* Flexbox enable karta hai */
    align-items: center; /* Vertically align karta hai text aur image ko */
    justify-content: center; /* Center align karta hai content ko horizontally */
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #ccc;
    font-size: 14px;
}

.footer-text {
    margin-right: 10px; /* Thoda space dena text aur image ke beech */
}

.footer-logo {
    width: 70px; /* Logo ka size adjust karne ke liye */
    height: auto;
}


.highlightable:hover {
    color: #f39c12;
    cursor: pointer;
}

/* Welcome and Product Details Section */
.welcome-section {
    text-align: center;
    margin-top: 40px;
}

.highlightable-welcome {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

/* Contact Form Styling */
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    width: 100%;
}

.contact-form button {
    padding: 10px 20px;
    background-color: #f39c12;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #e67e22;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column; /* Stack items vertically */
        text-align: center; /* Center align text */
    }

    /* Navbar links will be displayed in one line in mobile */
    header nav {
        display: flex;
        justify-content: space-evenly;
        width: 100%;
    }

    header nav a {
        margin: 5px;
        font-size: 14px;
    }

    .search-bar input[type="text"] {
        width: 80%;
    }

    .main-content {
        flex-direction: column;
    }

    .left-section {
        margin-right: 0;
    }

    .right-section {
        grid-template-columns: 1fr 1fr;
    }

    footer {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    header .logo {
        font-size: 20px;
    }

    header nav a {
        font-size: 12px; /* Adjust font size for small screens */
    }

    /* Stack links vertically for very small screens */
    header nav {
        flex-direction: column;
        align-items: center;
    }

    .right-section {
        grid-template-columns: 1fr; /* One product per row */
    }

    .product-img {
        max-width: 150px;
    }

    .advertisement video {
        max-width: 100%;
    }
}
